import request from './index'

// 修改房态
export interface INF_ModifyHomeStatus {
  RoomNo: string
  Flag: string
  OldFlag?: string
  Note?: string
  Start?: string
  End?: string
  EndLess?: boolean
  Tel?: string
}

// 修改房态
export function ModifyHomeStatus(data: INF_ModifyHomeStatus) {
  return request({
    url: '/Home/ModifyHomeStatus',
    method: 'post',
    data
  })
}

// 锁房解除
export function UnLock(id: string) {
  return request({
    url: `/Home/CancelLockManual`,
    method: 'get',
    data: {
      id
    }
  })
}
